package com.googlecode.perfectable.visuable.parse;

import javax.xml.namespace.NamespaceContext;

import com.googlecode.perfectable.visuable.screen.StaticNamespaceContext;

public final class DocumentConstants {
	public static final String XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
	public static final String FRAMEWORK_NAMESPACE = "https://code.google.com/p/perfectable/prosperable";

	public static final String VISUAL_IDENTIFIER_ATTRIBUTE_NAME = "id";

	public static final String CONTROLLER_ELEMENT_NAME = "controller";
	public static final String LISTENER_ELEMENT_NAME = "listener";
	public static final String INJECT_VISUAL_ELEMENT_NAME = "inject-visual";

	public static final String CLASS_ATTRIBUTE_NAME = "class";
	public static final String EVENT_TYPE_ATTRIBUTE_NAME = "event";
	public static final String PROPERTY_NAME_ATTRIBUTE_NAME = "property";
	public static final String PROPERTY_REFERENCE_ATTRIBUTE_NAME = "idref";

	public static final NamespaceContext NAMESPACE_CONTEXT = StaticNamespaceContext.builder()
			.bind(XHTML_NAMESPACE, "xhtml")
			.bind(FRAMEWORK_NAMESPACE, "px")
			.build();

	private DocumentConstants() {
		// constant container
	}
}
